# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=gi-docgen
pkgver=2023.3
pkgrel=1
pkgdesc="A documentation generator for GObject-based libraries"
url="https://gitlab.gnome.org/GNOME/gi-docgen"
arch="noarch"
license="Apache-2.0 OR GPL-3.0-or-later"
depends="
	py3-jinja2
	py3-markdown
	py3-markupsafe
	py3-packaging
	py3-pygments
	py3-typogrify
	python3
	"
subpackages="$pkgname-pyc"
makedepends="meson"
source="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$pkgver/gi-docgen-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
9fbfe97167d83e0f166c6eece5e723dcf6d2a345cdf577a0618c971f3023d7a83d3ded471002a3ca24c2fe94611ceb88781002bacf406543f4a7f3b8608e42e5  gi-docgen-2023.3.tar.gz
"
